// 类数组转换为数组
const arrayLike = document.querySelectorAll(".item");
console.log(arrayLike);

// ES5
const arrWithE5 = Array.prototype.slice.call(arrayLike);
console.log(arrWithE5);

// ES6
const arrWithE6 = Array.from(arrayLike);
console.log(arrWithE6);
